package com.lt.basic.project.application.quartz.exceution;

import com.lt.basic.project.application.quartz.InvokeUtils;
import com.lt.basic.project.pojo.entity.admin.crontab.Crontab;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * 禁止并发任务
 */
@DisallowConcurrentExecution
public class QuartzDisExecution extends com.lt.basic.project.application.quartz.exceution.AbstractQuartzJob {

    @Override
    protected void doExecute(JobExecutionContext context, Crontab crontab) throws Exception {
        InvokeUtils.invokeMethod(crontab);
    }

}